class User {
  String id;
  String userName;
  String userPhone;
  String token;

  User({this.id, this.userName, this.userPhone, this.token});

  User.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userName = json['username'];
    userPhone = json['userphone'];
    token = json['token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['username'] = this.userName;
    data['userphone'] = this.userPhone;
    data['token'] = this.token;

    return data;
  }
}
